<?php

class Application_Form_Edit extends Zend_Form {
	public function init() {
		$this->setMethod('post');

		// id (blog-record) hidden (Parameter für edit
		$this->addElement('hidden', 'id', array(
			/* 'label'      => 'ID(blog):', */
			'required'   => false,
			'filters'    => array('StringTrim'),
		));

		$this->addElement('text', 'title', array(
			'label'      => 'Heading:',
			'required'   => true,
			'filters'    => array('StringTrim'),
		));

		$this->addElement('textarea', 'posting', array(
			'label'      => 'Please Comment:',
			'required'   => true,
			/* 'validators' => array(
				array('validator' => 'StringLength', 'options' => array(0, 200))
			) */
		));

		// für save und neu
		$this->addElement('submit', 'save', array(
			'ignore'   => true,
			'label'    => 'save',
		));

	}
}